package com.pzh.guli.service.edu.feign;

import com.pzh.guli.service.base.result.Result;
import com.pzh.guli.service.edu.feign.fallback.VodServiceFallBackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Service
@FeignClient(value = "service-vod",fallback = VodServiceFallBackService.class)
public interface VodService {
    @DeleteMapping("/admin/vod/media/delete/{id}")
    Result removeOneVideoById(@PathVariable("id") String id);
    @DeleteMapping("/admin/vod/media/remove")
    Result removeMoreVideoByIds(@RequestBody List<String> ids);
}
